{template 'header', $module}
<div class="main-block bd-gray mt10">
	<div class="hd fn-clear">
		<h2 class="fn-left">讯都推荐</h2>
	</div>
	<form method="post" class="form" action="{url('member/recommend')}" id="pub-form">
		 <div id="tab_other" class='root' title="讯都推荐">
				<table class="data-form c666 mt10">
					<tr>
						<th width="90">同意推荐信息：</th>
						<td width="600">
							{loop $MODULE $k $v}
							{if $v['issubscribe']}
								{if $v['module'] == 'job'}
							<input class="nobd fn-left mr5" type="checkbox" name="attention[]" value="{$v['moduleid']}" {if in_array($v['moduleid'], $attention)} checked="checked" {/if}/>
							<label  class="fn-left mr10">人才</label>
							<input class="nobd fn-left mr5" type="checkbox" name="attention[]" value="resume" {if in_array('resume', $attention)} checked="checked" {/if}/>
							<label  class="fn-left mr10">招聘</label>
								{else}
							<input  class="nobd fn-left mr5" type="checkbox" name="attention[]" value="{$v['moduleid']}" {if in_array($v['moduleid'], $attention)} checked="checked" {/if}/>
							<label  class="fn-left mr10">{$v['name']}</label>
								{/if}
							{/if}
							{/loop}
						</td>
					</tr>
				</table>
			</div>
		<div class="con pl105 fn-clear">
			<button type="submit" class="fn-left mr20 btn">保 存</button>
			<button type="button" class="btn" onclick="history.back(-1);">返回</button>
		</div>
</form>
<script type="text/javascript">
    seajs.use(['member'], function(member){
	    $('#pub-form').on('submit', function(){
		    return $('#pub-form').form('validate');
	    });
    });
</script>
</div>
{template 'footer', $module}